﻿#region Using

using System;
using System.Collections.Generic;
using System.Linq;

using GameLogic.Internal;

#endregion

namespace GameLogic.External
{

    #region Using

    #endregion

    public static class GameFactory
    {
        public static Tuple<IGame, IGameState> GenerateGame(IEnumerable<IPlayerHeader> players)
        {
            var game = new Game(players.Select(x => new Player(x.Name, x.Identifier)).ToList());

            return new Tuple<IGame, IGameState>(game, game.CurrentState);
        }
    }
}